package my.learnDB.mybatis.domain;


import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
public class User {

    private Integer id;
    private String name;  // 数据库 username
    private String gender;  // 数据库 sex
    private String pwd;  // 数据库 password

    private List<Account> accounts;
    private List<Role> roles;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", roles=" + roles.toString() +
                '}';
    }
}
